#include "RecoverFlagState.h"

Vector2 flag_pos;

Vector2 recover_get_flag_pos(Agent* agent, bool* stateChanged) {
	return flag_pos;
}

Vector2 recover_return_pos(Agent* agent, bool* stateChanged) {
	return World::instance()->getBasePos(World::instance()->getTeam());
}

RecoverFlagState::RecoverFlagState(string target_flag_color) :
	SearchToWayPointsState()
{
	flag_pos = World::instance()->getFlagPos(target_flag_color);
}


RecoverFlagState::~RecoverFlagState(void)
{
}

void RecoverFlagState::add_waypoint_methods() {
	add_waypoint_method(recover_get_flag_pos);
	add_waypoint_method(recover_return_pos);
}
